<form action="" class="form-horizontal" role="form">

  <div class="form-group">
	<label class="col-sm-2 control-label">团购名称</label>
	<div class="col-sm-3">
		<input type="text" class="form-control" name="name" placeholder="请输入团购名称" datatype="*" value="{$groupon.name}" />
	</div>
  </div>

  <div class="form-group">
    <label class="col-sm-2 control-label">抢购时间</label>
    <div class="row">
      <div class="col-sm-4">
        <div class="input-group">
          <span class="input-group-addon">开始</span>
          <input type="text" class="form-control" id="begin-time" name="begin_time" placeholder="请选择活动开始时间" value="{$groupon.begin_time|date='Y-m-d h:i:s',###}">
          <span class="input-group-addon">-</span>
          <input type="text" class="form-control" id="end-time" name="end_time" placeholder="请选择活动结束时间" value="{$groupon.end_time|date='Y-m-d h:i:s',###}">
          <span class="input-group-addon">结束</span>
        </div>
      </div>
    </div>
  </div>

  <div class="form-group">
		<label class="col-sm-2 control-label">状态</label>
		<div class="col-sm-3">{$groupon.status}</div>
  </div>
	
  <div class="form-group">
		<div class="col-sm-offset-2 col-sm-8">
			<input type="hidden" name="id" value="{$groupon.id}" /> 
			<a class="btn btn-default" onclick="javascript:history.go(-1)">返回上页</a>
			<a class="btn btn-default" onclick="self.location=document.referrer">返回上页并刷新</a>
			<button type="submit" class="btn btn-primary submit"
				data-loading-txt="提交中，请稍后……" data-ajax-url="__CONTROLLER__/save">保存更改</button>
		</div>
  </div>
</form>

<!-- datetimepicker -->
<link rel="stylesheet" href="__PUBLIC__/Style/Common/datetimepicker/bootstrap-datetimepicker.min.css">
<script src="__PUBLIC__/Style/Common/datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="__PUBLIC__/Style/Common/datetimepicker/bootstrap-datetimepicker.zh-CN.js"></script>
<script type="text/javascript">
  $(function(){
    
    $("#begin-time").datetimepicker({
      "language": "zh-CN"
    });
    
    $("#end-time").datetimepicker({
      "language": "zh-CN"
    });
  });
</script>